{% extends "front/front_signbase.html" %}
{% from 'common/_macros.html' import static %}
{% block title -%}Snow论坛注册{%- endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ static('front/css/signup.css') }}">
    <script src="{{ static('front/js/signup.js') }}"></script>
{% endblock %}

{% block h2_block %}
    Snow论坛账号注册
{% endblock %}

{% block signbox %}
     <div class="form-group">
        <input type="text" class="form-control" name="username" placeholder="用户名">
    </div>
    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="email" placeholder="邮箱号码">
            <span class="input-group-btn">
                <button class="btn btn-default" id="email_captcha">发送验证码</button>
            </span>
        </div>
    </div>
    <div class="form-group">
        <input type="text" class="form-control" name="email_captcha" placeholder="邮箱验证码">
    </div>
    <div class="form-group">
        <input type="password" class="form-control" name="password1" placeholder="设置密码">
    </div>
    <div class="form-group">
        <input type="password" class="form-control" name="password2" placeholder="确认密码">
    </div>
    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="graph_captcha" placeholder="输入验证码">
            <span class="input-group-addon captcha-addon">
                <img id="captcha-img" class="captcha-img" src="{{ url_for('front.graph_captcha') }}" alt="">
            </span>
        </div>
    </div>
    <div class="form-group">
        <span style="display: none" id="return-to-span">{{ return_to }}</span>
        <button class="btn btn-warning btn-block" id="submit-btn">立即注册</button>
    </div>
{% endblock %}
